package com.example.zlw.dem24;

/**
 * @program: Zlw
 * @description:
 * @author: 诸葛龙辰
 * @create: 2022-11-09 22:18
 **/

/**
 * 加减乘除
 */
public class Impl implements Method1{
    @Override
    public int add(int a,int b) {
        System.out.println("输入的数值：a="+a+"      b="+b);
        int c=a+b;
        System.out.println("最终结果："+c);
        return c;
    }

    @Override
    public int subtract(int a,int b) {
        System.out.println("输入的数值：a="+a+"      b="+b);
        int c=a+b;
        System.out.println("最终结果："+c);
        return c;
    }

    @Override
    public int multiply(int a,int b) {
        System.out.println("输入的数值：a="+a+"      b="+b);
        int c=a+b;
        System.out.println("最终结果："+c);
        return c;
    }

    @Override
    public int divide(int a,int b) {
        System.out.println("输入的数值：a="+a+"      b="+b);
        int c=a+b;
        System.out.println("最终结果："+c);
        return c;
    }

}
